package com.phkj.qdh.repository

import android.net.Uri
import com.phkj.qdh.bean.ApprovalManBean
import com.phkj.qdh.bean.CarKeyBean
import com.phkj.qdh.bean.UseCarBean
import com.phkj.qdh.bean.UseCarMyBean
import com.phkj.qdh.bean.UseCarMyDetail
import com.phkj.qdh.net.APPROVAL_MAN_LIST
import com.phkj.qdh.net.APP_LOGIN
import com.phkj.qdh.net.CAR_HAS_PERMISSION
import com.phkj.qdh.net.CAR_KEY_LIST
import com.phkj.qdh.net.CAR_USE_LIST
import com.phkj.qdh.net.CAR_USE_LIST_MY
import com.phkj.qdh.net.CAR_USE_MY_DETAIL
import com.phkj.qdh.net.CAR_USE_PROCESS
import com.phkj.qdh.net.CAR_USE_SUBMIT
import com.phkj.qdh.net.FILE_UPLOAD
import com.phkj.qdh.net.PageList
import rxhttp3.RxHttp
import rxhttp3.toFlowResponse

object CommonRepository {

    //上传文件
    fun uploadFile(filePath: String)=
        RxHttp.postForm(FILE_UPLOAD)
            .addFile("file",filePath)
            .toFlowResponse<String>()



}